﻿@model Website.Models.Domain.User
@{
    this.ViewBag.Title = "Redigér bruger";
    this.Layout = "~/Views/_Shared/_Layout.cshtml";
    var error = this.ViewData["ErrorMessage"] as string;
}

@using (this.Html.BeginForm())
{
    <div class="error">@Html.ValidationSummary()</div>
    <div class="error">@error</div>
    <div class="formBullet">Navn:</div>
    <div class="formEntry"><input type="text" name="Name" tabindex="1" autofocus="autofocus" value="@Model.Name"/></div>

    <div class="formBullet">Brugernavn:</div>
    <div class="formEntry"><input type="text" name="Username" tabindex="2" value="@Model.Username"/></div>

    <div class="formBullet">Password:</div>
    <div class="formEntry"><input type="password" name="Password" tabindex="3"/></div>

    <div class="formBullet">Pasword igen:</div>
    <div class="formEntry"><input type="password" name="Password2" tabindex="4"/></div>

    <div class="formBullet">Telefon nr.:</div>
    <div class="formEntry"><input type="text" name="PhoneNumber" tabindex="5" value="@Model.PhoneNumber"/></div>

    <div class="formBullet">E-mail:</div>
    <div class="formEntry"><input type="text" name="Email" tabindex="6" value="@Model.Email"/></div>

    <!-- hidden field to pass Guid -->
    <input type="hidden" name="Id" value="@Model.ID"/>
    <div class="buttonHolder"><input type="submit" value="Opdatér" tabindex="7"/></div>
}